package cn.tedu.boyou.comment.domain;

import lombok.Getter;
import lombok.Setter;
import org.springframework.data.annotation.Id;
import org.springframework.data.mongodb.core.mapping.Document;

import java.io.Serializable;
import java.util.Date;

@Setter
@Getter
@Document("virtual_comment")
public class VirtualComment implements Serializable{
    public static final int TRAVLE_COMMENT_TYPE_COMMENT = 0; //普通评论
    public static final int TRAVLE_COMMENT_TYPE = 1; //评论的评论
    @Id
    private String id; //芒果的id
    private Long userId;//用户的ID
    private  String username;//用户的名称
    private int level;//用户的登记
    private String content;//评论的内容
    private Date createTime;//创建时间
    private String headUrl;//头像
    private VirtualComment refComment;//关联的评论

}
